import http from "../utils/request"
// 获取学员信息
export let getStutentApi = (page = 1, count = "", classes = "") => http.get("/students/getstulist", {
    params: {
        page,
        count,
        class: classes
    }
})

// 搜索学员
export const searchStuListApi = (key = "", count = "", page = 1) => http.get("/students/searchstu", {
    params: {
        key,
        count,
        page
    }
})

// 增加学员信息
export const addStuApi = param => http.post("/students/addstu", param)

// 删除学员信息
export const delStuApi = (sid) => http.get("/students/delstu", {
    params: {
        sId:sid
    }
})

// 修改学员信息
export const updateStuApi = param => http.post("/students/updatestu",param)